package com.HAPOERP_EJB.persistance;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.OneToMany;

/**
 * Entity implementation class for Entity: Offer
 *
 */
@Entity
@NamedQueries({@NamedQuery(name="Offer.findAll",query="SELECT o from Offer o"), @NamedQuery(name="Offer.findByid", query="SELECT o FROM Offer o WHERE o.idOffer= :id")})
public class Offer implements Serializable {

	
	private int idOffer;
	private String Name;
	private String Profil;
	private String Langue;
	private List<Competence> Competence;
	private String Compet;
	private String Experience;
	private String DateGive;
	private String DateSet;
	private String Nationality;
	private String Sexe;
	private String type;
	private String salary;
	private String formationdegree;
	private static final long serialVersionUID = 1L;

	
	@OneToMany
	public List<Competence> getCompetence() {
		return Competence;
	}

	public void setCompetence(List<Competence> competence) {
		Competence = competence;
	}

	public Offer() {
		super();
	} 
	
	@Id @GeneratedValue
	public int getIdOffer() {
		return this.idOffer;
	}

	public void setIdOffer(int idOffer) {
		this.idOffer = idOffer;
	}   
	public String getName() {
		return this.Name;
	}

	public void setName(String Name) {
		this.Name = Name;
	}   
	public String getProfil() {
		return this.Profil;
	}

	public void setProfil(String Profil) {
		this.Profil = Profil;
	}   
	public String getLangue() {
		return this.Langue;
	}

	public void setLangue(String Langue) {
		this.Langue = Langue;
	}   
  
	public String getExperience() {
		return this.Experience;
	}

	public void setExperience(String Experience) {
		this.Experience = Experience;
	}   
	public String getDateGive() {
		return this.DateGive;
	}

	public void setDateGive(String DateGive) {
		this.DateGive = DateGive;
	}   
	public String getDateSet() {
		return this.DateSet;
	}

	public void setDateSet(String DateSet) {
		this.DateSet = DateSet;
	}   
	public String getNationality() {
		return this.Nationality;
	}

	public void setNationality(String Nationality) {
		this.Nationality = Nationality;
	}   
	public String getSexe() {
		return this.Sexe;
	}

	public void setSexe(String Sexe) {
		this.Sexe = Sexe;
	}

	@Override
	public String toString() {
		return "Offer [idOffer=" + idOffer + ", Name=" + Name + ", Profil="
				+ Profil + ", Langue=" + Langue + ", Competence=" + Competence
				+ ", Experience=" + Experience + ", DateGive=" + DateGive
				+ ", DateSet=" + DateSet + ", Nationality=" + Nationality
				+ ", Sexe=" + Sexe + "]";
	}

	public String getCompet() {
		return Compet;
	}

	public void setCompet(String compet) {
		Compet = compet;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}

	public String getFormationdegree() {
		return formationdegree;
	}

	public void setFormationdegree(String formationdegree) {
		this.formationdegree = formationdegree;
	}
   
}
